#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "WorkerThread.h"

#include <QMainWindow>
extern "C" {
//     int runSampleVIRVI2VO(const char *configFilePath);
    void handle_exit(int signo);
}
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_close_clicked();

private:
    Ui::MainWindow *ui;

    const QString configFilePath = "sample_virvi2vo.conf";

    WorkerThread *worker = nullptr; // Declare worker as nullptr initially 
};
#endif // MAINWINDOW_H
